package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * sewage_device_storage_record
 */
@Data
@ApiModel(value = "DeviceStorageRecordPO", description = "资产入库记录")
public class DeviceStorageRecordPO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @NotNull
    @Range(min = 1)
    @ApiModelProperty(value = "主键", required = true)
    private Long id;

    @ApiModelProperty(value = "入库大类id", required = true)
    private Long storageTypeId;

    @ApiModelProperty(value = "记录详情", required = true)
    private String recordInfo;

    @ApiModelProperty(value = "录入人", required = true)
    private String createBy;

    @ApiModelProperty(value = "录入时间", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAt;
}